﻿namespace dPet.Domain.Specifications
{
	using dPet.Domain.Models;
	using Hangerd.Specification;

	public class SubCategorySpecifications
	{
		public static Specification<ProductSubCategory> IdEquals(string id)
		{
			return new DirectSpecification<ProductSubCategory>(sc => sc.Id == id);
		}

		public static Specification<ProductSubCategory> CategoryIdEquals(string categoryId)
		{
			return new DirectSpecification<ProductSubCategory>(sc => sc.Category.Id == categoryId);
		}

		public static Specification<ProductSubCategory> NameEquals(string name)
		{
			return new DirectSpecification<ProductSubCategory>(sc => sc.Name == name);
		}
	}
}
